wayland: Fix grabbing popup
authorMatthias Clasen <mclasen@redhat.com>
Sun, 20 Sep 2020 14:02:53 +0000 (10:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 20 Sep 2020 14:02:53 +0000 (10:02 -0400)
A typo snuck into commit 3023a61e1d65bee1db3 that
caused us to fail all grabbing popups with
"grab failed: not viewable". Fix that.

gdk/wayland/gdksurface-wayland.c

index 022ea2c762c985d6c78f6f145d712aa1eb01e1c1..e05fdc4b63f89b053428b8bda038efb70add6127 100644 (file)
@@ -2459,7 +2459,7 @@ gdk_wayland_surface_create_xdg_popup (GdkSurface     *surface,
   if (!impl->display_server.wl_surface)
     return FALSE;
 
-  if (!is_realized_shell_surface (impl))
+  if (!is_realized_shell_surface (parent_impl))
     return FALSE;
 
   if (is_realized_toplevel (impl))